#ifndef _E2PROM_FUNC_H_s
#define _E2PROM_FUNC_H_

#include "i2c_communication_driver.h"
#include "stm32f4xx.h"
int e2prom_func_init(void);

int e2prom_read(uint16_t address, uint8_t *data, uint16_t lenth);
int e2prom_write(uint16_t address, uint8_t *data, uint16_t lenth);

void i2c_device_hardware_init(void);

// Pin_IO_Handle I2C_SCL_HIGH;
uint8_t i2c_scl_high(void);

// Pin_IO_Handle I2C_SCL_LOW;
uint8_t i2c_scl_low(void);

uint8_t i2c_sda_output_to_input(void);
uint8_t i2c_sda_intput_to_output(void);

uint8_t i2c_sda_high(void);
uint8_t i2c_sda_low(void);
uint8_t i2c_read_sda(void);

#endif // !_E2PROM_FUNC_H_
